Hi.

I would like to change the colours of the main horizontal menu bar to a colour other than black.

I have created a sub-theme just for this purpose to override the style sheet but I have not been able to locate where these colours are defined.

Can you tell me please?

Many thanks.

Comments

mt3ch’s picture

Title: Change colour of menu bar from black » How do I change colour of horizontal menu bar from black?
Jeff Burnz’s picture

Its an image - its a bit tricky to change, you either have to replace it with your own custom image and mod the CSS to call that image or just mess with the CSS by setting a background colour.

Use Firebug to track down where you need to make changes, I cant recall right now and my test site is being migrated between servers.

You will have issues with a subtheme because they do not automatically inherit theme settings (if you enable Superfish it likely won't work).

mt3ch’s picture

Thanks for your quick and helpful reply. I eventually worked it out after several hours as outlined below.

I had already tried replacing the images "bg-header.png" and "bg-header.png" with my custom versions but found the color module settings replaced them whenever I used it.

So I first set the colour scheme right using the color module settings and then replaced the images in the directory the color module created (e.g. "default/files/color/themeName-0fe4a139"). I then noticed that although the colour of the menu bar had changed the links' background colour was still black. So after a little more inspection I found that this style was set the style.css found in the temporary directory created by the color module. The setting to change was the background property for #superfish-inner .menu li.

Then I removed the color module directory from the subtheme directory (which I had copied there to make it work with the subtheme) so that the styles and images are not overwritten again by using the color module settings.

Mark.

P.S. I am impressed with what you've done with this theme and also very pleased and grateful that you are so actively helpful in supporting it.

Many thanks again! :-)

Jeff Burnz’s picture

Status: Active » Closed (fixed)
martin308’s picture

Status: Closed (fixed) » Needs work

Not sure I understand how to resolve this bug :S The color module doesnt quite work when using the superfish menu, is the issue from what I gather. Any chance we can get a fix for this, or a slightly more detailed workaround? :)

Jeff Burnz’s picture

Status: Needs work » Closed (fixed)

Theres no choice but to change the actual image, you are stuck with this method - we're taking about the background image, not the superfish menu. If you have a specific question please open a new thread.

This has nothing really to do with color module.